﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            UDisk u = new UDisk("金伯利");
            u.read();
            u.write();

            Console.WriteLine();

            MoblieHardDisk m = new MoblieHardDisk("金士顿");
            m.read();
            m.write();

            Console.WriteLine();

            Computer c = new Computer("联想");
            c.Strat();
            IUSB usb1 = u;
            usb1.read();
            usb1.write();

            Console.WriteLine();
            IUSB usb2 = m;
            usb2.read();
            usb2.write();
            c.End();
        }
    }
}
